package com.heima.model.behavior.pojos;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("comment_reply")
public class CommentReplyDoc {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private Integer authorId;
    private String authorName;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commentId;
    private String content;
    private Integer likes;
    private Date createdTime;
    private Date updatedTime;
    private Integer operation;
}
